package com.company.单例模式.饿汉模式;

public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        Class.forName("com.company.单例模式.饿汉模式.Instance");

        System.out.println("=================");
        Instance instance1 = Instance.getInstance();
        Instance instance2 = Instance.getInstance();
        System.out.println(instance1==instance2);
    }
}
